<div data-dux="table-bind">
    <div class="dux-page-header am-cf">
        <div class="page-title">
            <form class="am-form-inline" method="get" action="{url()}">
                <div class="am-form-group">
                    <input type="text" name="keyword" class="am-form-field" value="{$pageMaps.keyword}"
                           placeholder="搜索">
                </div>
                <div class="am-form-group">
                    <select class="am-form-field" name="type">
                        <option value="4">全部</option>
                        <option value="1" <!--if{$pageMaps.type == 1}-->selected <!--{/if}-->>待审核</option>
                        <option value="2" <!--if{$pageMaps.type == 2}-->selected <!--{/if}-->>已退款</option>
                        <option value="3" <!--if{$pageMaps.type == 3}-->selected <!--{/if}-->>未通过</option>
                        <option value="0"  <!--if{$pageMaps.type == '0'}-->selected <!--{/if}-->>已取消</option>
                    </select>
                </div>
                <div class="am-form-group">
                    <button type="submit" class="am-btn am-btn-primary am-icon-search"></button>
                </div>
            </form>
        </div>
    </div>
    <div class="dux-page-table">
        <table class="am-table dux-table" data-table>
            <thead>
            <tr>
                <th width="150">单号</th>
                <th width="70">图片</th>
                <th>商品</th>
                <th width="250">用户</th>
                <th class="am-text-center" width="100">状态</th>
                <th class="am-text-center" width="150">管理</th>
            </tr>
            </thead>
            <tbody>
            <!--loop{$list as $vo}-->
            <tr>
                <td>
                    {$vo.refund_no}
                </td>
                <td>
                    <a href="{$vo.goods_url}" target="_blank" class="am-fl">
                        <img src="{$vo.goods_image}" width="60" height="60">
                    </a>
                </td>
                <td>
                    <div><a href="{$vo.goods_url}" target="_blank" class="link">{$vo.goods_name}</a>
                    </div>
                    <div class="dux-text-disabled">
                        <!--loop{(array)$vo.goods_options as $v}-->
                        {$v.value}
                        <!--{/loop}-->
                    </div>
                    <div class="dux-text-disabled">￥{$vo.goods_price} × {$vo.goods_qty}</div>
                </td>
                <td><a data-dux="dialog-open" data-url="{url('member/MemberUser/dialogUser', ['id' => $vo.user_id])}" data-title="用户信息" data-height="250px" href="javascript:;">{$vo.user_nickname}({$vo.user_tel})</a></td>
                <td class="am-text-center">
                    <!--if{$vo.status == 0}-->
                    <span>已取消</span>
                    <!--{/if}-->
                    <!--if{$vo.status == 1}-->
                    <span class="am-text-warning">待审核</span>
                    <!--{/if}-->
                    <!--if{$vo.status == 2}-->
                    <span class="am-text-success">已退款</span>
                    <!--{/if}-->
                    <!--if{$vo.status == 3}-->
                    <span class="am-text-danger">未通过</span>
                    <!--{/if}-->
                </td>
                <td class="am-text-center">
                    <a class="am-btn am-btn-primary am-btn-xs" title="详情" href="{url('info', ['id'=>$vo['refund_id']])}"><i class="am-icon-info"></i></a>

                    <a class="am-btn am-btn-danger am-btn-xs" href="javascript:;"
                       data-url="{url('del')}" data-id="{$vo.refund_id}" title="删除" data-del><i
                            class=" am-icon-trash"></i></a>
                </td>
            </tr>
            <!--{/loop}-->
            </tbody>
        </table>
    </div>
    <div class="dux-page-foot am-cf">
        {$page}
    </div>
</div>